<h3 class="content-title">
    Quản lý sự kiện
    <span class="new-button right">
        <a href="<?php echo site_url(); ?>/event/add">Viết bài mới</a>
    </span>
</h3>
<hr/>
<div class="content-center">
    <ul class="list_node">
        <?php if(sizeof($arrNode['data']) > 0) { ?>
        <li class="title">
            <span class="span-1">STT</span>
            <span class="span-10">Tiêu Đề</span>
            <span class="span-4">Ngày Tạo</span>
            <span class="span-4 last">Action</span>
        </li>
        <?php foreach($arrNode['data'] as $index => $node) { ?>
        <li>
            <span class="span-1"><?php echo $index+$offset+1; ?></span>
            <span class="span-10" style="text-align: left">
                <a target="_blank" title="<?php echo $node['title']; ?>" href="<?php echo $node['link']; ?>">
                    <?php echo $node['title']; ?>
                </a>
            </span>
            <span class="span-4"><?php echo strftime("%d/%m/%Y - %H:%M", $node['created_on']); ?></span>
            <span class="span-4 last">
                <a href="<?php echo site_url().'/event/edit/id/'.$node['node_id']; ?>">Sửa</a> |
                <a href="<?php echo site_url().'/event/delete/id/'.$node['node_id']; ?>" onclick="return confirm('Bạn có muốn xóa bài này không?');">Xóa</a>
            </span>
        </li>
        <?php } } ?>
    </ul>
    <div class="span-20 last paging">
        <?php
            if(isset($paging))
            {
                echo $this->pagination->create_links();
            }
         ?>
    </div>
</div>
